import request from '@/utils/request'

export function brandList(data){
    return request({
        url: '/mall/product/brand/list',
        method: 'get',
        data: data
    })
}

export function brandUpdateStatus(data){
    return request({
        url: 'mall/product/brand/update/status',
        method: 'post',
        data: data
    })
}

export function brandDelete(data){
    return request({
        url: 'mall/product/brand/delete',
        method: 'post',
        data: data
    })
}

export function brandInfo(brandId){
    return request({
        url: 'mall/product/brand/info/' + brandId,
        method: 'get',
    })
}

export function brandSave(data){
    return request({
        url: 'mall/product/brand/save',
        method: 'post',
        data: data
    })
}

export function brandUpdate(data){
    return request({
        url: 'mall/product/brand/update',
        method: 'post',
        data:data
    })
}

export function categoryBrandRelationSave(data){
    return request({
        url: 'mall/product/categorybrandrelation/save',
        method: 'post',
        data: data
    })
}

export function categoryBrandRelationDelete(data){
    return request({
        url: 'mall/product/categorybrandrelation/delete',
        method: 'post',
        data: data
    })
}

export function categoryBrandRelationList(data){
    return request({
        url: 'mall/product/categorybrandrelation/catelog/list',
        method: 'get',
        data: data
    })
}

